home *** CD-ROM | disk | FTP | other *** search
- //
- // The Fusion Library Interface for DOS
- // Version 1.06c
- // Copyright (C) 1990, 1991, 1992
- // Software Dimensions
- //
- // DialogClass
- // DiaPickList (Index Based Pick-Lists)
- // DiaStructPickList (Structure Based Pick-Lists)
- //
-
- #include "fli.h"
- #include "elements.h"
- #include "colors.h"
-
- #ifdef __BCPLUSPLUS__
- #pragma hdrstop
- #endif
-
- //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- //
- // DiaStructPickList()
- //
- // Constructor for DiaStructPickList
- //
- //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-
- DiaStructPickList::DiaStructPickList(int _X,int _Y,int _Width,int _Height,
- int &_Item,int &_ItemCount,int _StructWidth,void *_Items) :
- DiaPickGeneric(_X,_Y,_Width,_Height,_Item,_ItemCount),
- Items(_Items),
- StructWidth(_StructWidth)
- {
- }
-
- //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- //
- // GetItem()
- //
- // Gets item from structured pick list
- //
- //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-
- char *DiaStructPickList::GetItem(int ItemNumber)
- {
- return (char *)((char *)Items+((ItemNumber)*StructWidth));
- }
-